<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="perm" uri="/WEB-INF/tld/perm.tld"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script>
	var ctx="${ctx}";
</script>

<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />

	<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/font-awesome.min.css" rel="stylesheet" />
	<link href="${ctx}/static/css/animate.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/style.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/common.css?v=${static_version}" rel="stylesheet" />
	<link href="//at.alicdn.com/t/font_9x03jhokyws9vn29.css" rel="stylesheet">
	<!-- 插件样式  -->
	<link href="${ctx}/static/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
	<link href="${ctx}/static/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
	<link href="${ctx}/static/css/plugins/markdown/bootstrap-markdown.min.css" rel="stylesheet" />

	<title>发布商品</title>
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">
			<div class="ibox float-e-margins">
								
			<div class="form-group">
				<input type="hidden" id="orderNum" value="${orderNum }"/>
				<label class="col-sm-2 control-label">物流公司</label>
				<div class="col-sm-2">
					 <select data-placeholder="选择物流" id="compayName"  class="input-md form-control chosen-select" tabindex="4" >
							<option value="-1">--请选择--</option>
							<c:forEach items="${expressMap}" var="express">
								<option value="${express.key}">${express.value}</option>
							</c:forEach>
					</select>			
				</div>
				 <label class="col-sm-2 control-label">快递单号</label>
                   <div class="col-sm-2">
                   	<input type="text" class="form-control" value="" placeholder="" id="expressNo" name="expressNo" datatype="*" nullmsg="不能为空">
					<div class="form-group mt-20">
				<label class="col-sm-2"></label>
				<div class="col-sm-8">
					<button onClick="" id="express-btn"
						class="btn btn-primary radius col-sm-2 " type="button">确认
					</button>&nbsp;&nbsp;&nbsp;&nbsp;
				</div>
			</div>	
                   </div>
			</div>
	</div>
		</div>
	</div>
	<!-- /ibox -->
</div>
	
	<script src="${ctx}/static/js/jquery.min.js"></script>
	<script src="${ctx}/static/js/bootstrap.min.js"></script>

	
	<!-- 插件脚本 -->
	<script src="${ctx}/static/js/plugins/layer/layer.js"></script>	
	<script src="${ctx}/static/js/jquery.form.js"></script>
	<script src="${ctx}/static/js/plugins/webuploader/webuploader.min.js"></script>
	<script src="${ctx}/static/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="${ctx}/static/js/Validform/5.3.2/Validform.min.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>	
	<script type="text/javascript" src="${ctx}/static/js/plugins/markdown/markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/to-markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/bootstrap-markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/bootstrap-markdown.zh.js"></script>
    
	<script type="text/javascript">
	$("#express-btn").click(function(){
		var orderNum=$("#orderNum").val();
		var compayName=$("#compayName").val();
		var expressNo=$("#expressNo").val();
		var edit_page ="${ctx}/dingdan/newfind-send";
		$.ajax({
			type : "POST",
			url : edit_page,
			data : {id:orderNum,compayName:compayName,expressNo:expressNo},
			error : function() {
				layer.msg('操作失败', {icon:5,time:1000});
			},
			success : function(msg) {
				parent.window.location.reload();
		        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
		        parent.layer.close(index);
			}
		});
		
	})
	</script> 
	

</body>
</html>